#ifndef SHBK_COMMON_CONFIGDEF_H_
#define SHBK_COMMON_CONFIGDEF_H_
#include<string>



typedef struct st_env_config
{
	
	std::string db_ip;
	unsigned short db_port;
	std::string db_user;
	std::string db_pwd;
	std::string db_name;


	
	unsigned short svr_port;


	st_env_config() {};

	st_env_config(const std::string& db_ip, const unsigned int db_port, const std::string& db_user, const std::string& db_pwd,
		const std::string& db_name)
		{
	this->db_ip   = db_ip;
	this->db_port = db_port;
	this->db_user = db_user;
	this->db_pwd  = db_pwd;
	this->db_name = db_name;
	this->svr_port = svr_port;
}


st_env_config& operator = (const st_env_config& config)
{
	if (this != &config)
	{
		this->db_ip = config.db_ip;
		this->db_port = config.db_port;
		this->db_user = config.db_user;
		this->db_pwd = config.db_pwd;
		this->db_name = config.db_name;
		this->svr_port = config.svr_port;
	}

	return *this;
}

};







#endif // !SHBK_COMMON_CONFIGDEF_H_
